package com.sctvcloud.qingchuan.ui.adapter.holder;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.ruihang.generalibrary.ui.adapter.holder.BaseRecylerHolder;
import com.sctvcloud.qingchuan.R;
import com.sctvcloud.qingchuan.beans.PoliticsInfoImage;
import com.sctvcloud.qingchuan.ui.utils.GlideUtil;

import butterknife.BindView;
import butterknife.ButterKnife;

public class PoliticsImgHolder extends BaseRecylerHolder<PoliticsInfoImage> {
    @BindView(R.id.item_img)
    public ImageView img;

    public PoliticsImgHolder(Context context, View itemView) {
        super(context, itemView);
    }

    @Override
    protected void initInject() {
        ButterKnife.bind(this, itemView);
    }

    @Override
    public void setData(PoliticsInfoImage imgUrl) {
        GlideUtil.loadImgWith11Def(context, imgUrl.getImagePath(), img);
    }


}
